return view controller laravel

25

return view controller laravel -

Route::get('/', function () {
    return view('greeting', ['name' => 'James']);
});

return view with variable laravel -

return View::make('blog')->with('posts', $posts);

Comments

Submit
0 Comments